package com.cr.sync.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.util.Date;

/**
 * 远程数据-合格证情况对象 tb_sync_production_certificate
 * 
 * @author tang
 * @date 2025-08-29
 */
public class TbSyncProductionCertificate implements Serializable {
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 所属行业(1.种植业、2.畜牧业、3.水产业、4.其他行业) */
    private String industry;

    /** 产品名称 */
    private String productName;

    /** 合格证号 */
    private String certificateCode;

    /** 生产者 */
    private String bodyName;

    /** 联系方式 */
    private String contactPhone;

    /** 开具时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date issueTime;

    /** 开具企业 */
    private String issueEmp;

    /** 产品数量 */
    private String certificateCount;

    /** 产品数量单位(17:克,16:千克,18:吨,20:毫升,21:升) */
    private Integer unit;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setIndustry(String industry) 
    {
        this.industry = industry;
    }

    public String getIndustry() 
    {
        return industry;
    }

    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }

    public void setCertificateCode(String certificateCode) 
    {
        this.certificateCode = certificateCode;
    }

    public String getCertificateCode() 
    {
        return certificateCode;
    }

    public void setBodyName(String bodyName) 
    {
        this.bodyName = bodyName;
    }

    public String getBodyName() 
    {
        return bodyName;
    }

    public void setContactPhone(String contactPhone) 
    {
        this.contactPhone = contactPhone;
    }

    public String getContactPhone() 
    {
        return contactPhone;
    }

    public void setIssueTime(Date issueTime) 
    {
        this.issueTime = issueTime;
    }

    public Date getIssueTime() 
    {
        return issueTime;
    }

    public void setIssueEmp(String issueEmp) 
    {
        this.issueEmp = issueEmp;
    }

    public String getIssueEmp() 
    {
        return issueEmp;
    }

    public void setCertificateCount(String certificateCount) 
    {
        this.certificateCount = certificateCount;
    }

    public String getCertificateCount() 
    {
        return certificateCount;
    }

    public void setUnit(Integer unit) 
    {
        this.unit = unit;
    }

    public Integer getUnit() 
    {
        return unit;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("industry", getIndustry())
            .append("productName", getProductName())
            .append("certificateCode", getCertificateCode())
            .append("bodyName", getBodyName())
            .append("contactPhone", getContactPhone())
            .append("issueTime", getIssueTime())
            .append("issueEmp", getIssueEmp())
            .append("certificateCount", getCertificateCount())
            .append("unit", getUnit())
            .toString();
    }
}
